﻿using System;
using System.Text;
using System.Data;
using System.Data.OleDb;
using System.Collections.Generic;
using System.Reflection;
namespace BLL
{
	 	//UsersAccount
		public static class UsersAccount
	{	
	    private static Data.UsersAccount Data_UsersAccount = new Data.UsersAccount();	
		
		/// <summary>
        /// 添加
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public static long Add(Model.UsersAccount model)
        {
              return Data_UsersAccount.Add(model);
        }
         /// <summary>
        /// 修改
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public static int Update(Model.UsersAccount model)
        {
            return Data_UsersAccount.Update(model);
        }
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        public static bool Delete(long Id)
        {
            return Data_UsersAccount.Delete(Id);
        }       
        /// <summary>
        /// 单条
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        public static Model.UsersAccount GetModel(long Id)
        {
             return Data_UsersAccount.GetModel(Id);
        }
        public static Model.UsersAccount GetModelByuser_id(long user_id)
        {
            return Data_UsersAccount.GetModelByuser_id(user_id);
        }
        public static Model.UsersAccount GetModeluser_id(long user_id)
        {
            return Data_UsersAccount.GetModeluser_id(user_id);
        }
        public static Model.UsersAccount GetModelBytouz_user_id(long touz_user_id)
        {
            return Data_UsersAccount.GetModelBytouz_user_id(touz_user_id);
        }
        /// <summary>
        /// 总数据数
        /// </summary>
        /// <returns></returns>
        public static int GetAll_Count()
        {
            return Data_UsersAccount.GetAll_Count();
        }        
        /// <summary>
        /// 抽取分页数据
        /// </summary>
        public static List<Model.UsersAccount> GetPageList_Where(int pageIndex, int pageSize,long user_id,out int totalCount)
        {          
             return Data_UsersAccount.GetPageList_Where(pageIndex, pageSize,user_id, out totalCount);
        }
        public static List<Model.UsersAccount> getList(int pageIndex, int pageSize,out int totalCount)
        {
            return Data_UsersAccount.getList(pageIndex, pageSize, out totalCount);
        }
        /// <summary>
        /// 批删
        /// </summary>
        /// <param name="Ids"></param>
        /// <returns></returns>
        public static int Drop(string Ids)
        {
            return Data_UsersAccount.Drop(Ids);
        }



        //--------------------------------------------------------
        public static List<Model.UsersAccount> GetPageListBysql(int pageIndex, int pageSize, string sql, out int totalCount)
        {
            return Data_UsersAccount.GetPageListWhere(pageIndex, pageSize, sql, out totalCount);

        }

        public static DataTable GetPageListBysql(string sql)
        {
            return Data_UsersAccount.GetPageListBysql(sql);
        }
        public static int Update(string sql)
        {
            return Data_UsersAccount.Update(sql);
        }

      
        //------------------------------------------------------

    }
}